<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>检查服务器时间</title>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
</head>
<body>

       <div >
         <a href="{{ url_for('server.index') }}">服务器列表</a>
        </div>
       <div >
         <a href="{{ url_for('server.check_on_real_time') }}">check all server now</a>
        </div>
    <div >
        <p>检查服务器时间：{{ cost_time }}  秒</p>
        </div>
    <div>
            <label>Domain:
                <select id="id-domian-query" name="domain" class="">
                    <option value="" >所有</option>
                    {% for d in domains %}
                    <option value="{{ d }}" >{{ d }}</option>
                    {% endfor %}
                </select>
            </label>    
            <button id="queryServerTime" type="button" class="">查询</button>
            <button id="checkServerTime" type="button" class="">重新检查时间</button>
    </div>
<div class="bd-example">
    <table class="table">
        <thead class="thead-dark">
        <tr>
            <th scope="col">id</th>
            <th scope="col">IP</th>
            <th scope="col">domain</th>
            <th scope="col">servername</th>
            <th scope="col">服务器时间</th>
            <th scope="col">更新时间</th>
            <th scope="col">操作</th>
        </tr>
        </thead>
        <tbody>
        {% for s in servers %}

            <tr>
                <td>{{ s.id }}</td>
                <th scope="col" server_id="{{ s.id }}">{{ s.ip }}</th>
                <td>{{ s.domain }}</td>
                <td>{{ s.servername }}</td>
                <td>{{ s.server_time }}</td>
                <td>{{ s.update_time }}</td>
                <td>
                    <a href="{{ url_for('server.sync_servertime') }}?server_id={{ s.id }}">同步</a>
                </td>
            </tr>
        {% endfor %}


        </tbody>
    </table>
</div>

<script src="/static/base.js"></script>
<script src="/static/checktime.js"></script>
</body>
</html>
